
import java.util.ArrayList;
import java.util.List;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class PersonTest {
    public static void main(String[] args) {
        Person p1 =new Person("张三","0771-45678978","发生的路");
        Person p2 =new Person("里斯","0771-45678978","发生的路");
        Person p3 =new Person("王五","0771-45678978","发生的路");
    
    List l = new ArrayList();
    l.add(p1);
    l.add(p2);
    l.add(p3);
    
    System.out.println("ArrayList:");
    System.out.println(l);
    
    }
}
